Optimal. Leaf size=159 \[ \frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{b e^3 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d}-\frac{e^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{1}{2} a b e^3 x+\frac{b^2 e^3 (c+d x)^2}{12 d}+\frac{b^2 e^3 \log \left (1-(c+d x)^2\right )}{3 d}+\frac{b^2 e^3 (c+d x) \tanh ^{-1}(c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.247547, antiderivative size = 159, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 9, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.391, Rules used = {6107, 12, 5916, 5980, 266, 43, 5910, 260, 5948} \[ \frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{b e^3 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d}-\frac{e^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{1}{2} a b e^3 x+\frac{b^2 e^3 (c+d x)^2}{12 d}+\frac{b^2 e^3 \log \left (1-(c+d x)^2\right )}{3 d}+\frac{b^2 e^3 (c+d x) \tanh ^{-1}(c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6107
Rule 12
Rule 5916
Rule 5980
Rule 266
Rule 43
Rule 5910
Rule 260
Rule 5948
Rubi steps
\begin{align*} \int (c e+d e x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2 \, dx &=\frac{\operatorname{Subst}\left (\int e^3 x^3 \left (a+b \tanh ^{-1}(x)\right )^2 \, dx,x,c+d x\right )}{d}\\ &=\frac{e^3 \operatorname{Subst}\left (\int x^3 \left (a+b \tanh ^{-1}(x)\right )^2 \, dx,x,c+d x\right )}{d}\\ &=\frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}-\frac{\left (b e^3\right ) \operatorname{Subst}\left (\int \frac{x^4 \left (a+b \tanh ^{-1}(x)\right )}{1-x^2} \, dx,x,c+d x\right )}{2 d}\\ &=\frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{\left (b e^3\right ) \operatorname{Subst}\left (\int x^2 \left (a+b \tanh ^{-1}(x)\right ) \, dx,x,c+d x\right )}{2 d}-\frac{\left (b e^3\right ) \operatorname{Subst}\left (\int \frac{x^2 \left (a+b \tanh ^{-1}(x)\right )}{1-x^2} \, dx,x,c+d x\right )}{2 d}\\ &=\frac{b e^3 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d}+\frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{\left (b e^3\right ) \operatorname{Subst}\left (\int \left (a+b \tanh ^{-1}(x)\right ) \, dx,x,c+d x\right )}{2 d}-\frac{\left (b e^3\right ) \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{1-x^2} \, dx,x,c+d x\right )}{2 d}-\frac{\left (b^2 e^3\right ) \operatorname{Subst}\left (\int \frac{x^3}{1-x^2} \, dx,x,c+d x\right )}{6 d}\\ &=\frac{1}{2} a b e^3 x+\frac{b e^3 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d}-\frac{e^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}-\frac{\left (b^2 e^3\right ) \operatorname{Subst}\left (\int \frac{x}{1-x} \, dx,x,(c+d x)^2\right )}{12 d}+\frac{\left (b^2 e^3\right ) \operatorname{Subst}\left (\int \tanh ^{-1}(x) \, dx,x,c+d x\right )}{2 d}\\ &=\frac{1}{2} a b e^3 x+\frac{b^2 e^3 (c+d x) \tanh ^{-1}(c+d x)}{2 d}+\frac{b e^3 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d}-\frac{e^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}-\frac{\left (b^2 e^3\right ) \operatorname{Subst}\left (\int \left (-1+\frac{1}{1-x}\right ) \, dx,x,(c+d x)^2\right )}{12 d}-\frac{\left (b^2 e^3\right ) \operatorname{Subst}\left (\int \frac{x}{1-x^2} \, dx,x,c+d x\right )}{2 d}\\ &=\frac{1}{2} a b e^3 x+\frac{b^2 e^3 (c+d x)^2}{12 d}+\frac{b^2 e^3 (c+d x) \tanh ^{-1}(c+d x)}{2 d}+\frac{b e^3 (c+d x)^3 \left (a+b \tanh ^{-1}(c+d x)\right )}{6 d}-\frac{e^3 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{e^3 (c+d x)^4 \left (a+b \tanh ^{-1}(c+d x)\right )^2}{4 d}+\frac{b^2 e^3 \log \left (1-(c+d x)^2\right )}{3 d}\\ \end{align*}
Mathematica [A] time = 0.180823, size = 148, normalized size = 0.93 \[ \frac{e^3 \left (3 a^2 (c+d x)^4+2 a b (c+d x)^3+6 a b (c+d x)+b (3 a+4 b) \log (-c-d x+1)+b (4 b-3 a) \log (c+d x+1)+2 b (c+d x) \tanh ^{-1}(c+d x) \left (3 a (c+d x)^3+b (c+d x)^2+3 b\right )+b^2 (c+d x)^2+3 b^2 \left ((c+d x)^4-1\right ) \tanh ^{-1}(c+d x)^2\right )}{12 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.054, size = 732, normalized size = 4.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.9763, size = 1116, normalized size = 7.02 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.12868, size = 830, normalized size = 5.22 \begin{align*} \frac{12 \, a^{2} d^{4} e^{3} x^{4} + 8 \,{\left (6 \, a^{2} c + a b\right )} d^{3} e^{3} x^{3} + 4 \,{\left (18 \, a^{2} c^{2} + 6 \, a b c + b^{2}\right )} d^{2} e^{3} x^{2} + 8 \,{\left (6 \, a^{2} c^{3} + 3 \, a b c^{2} + b^{2} c + 3 \, a b\right )} d e^{3} x + 4 \,{\left (3 \, a b c^{4} + b^{2} c^{3} + 3 \, b^{2} c - 3 \, a b + 4 \, b^{2}\right )} e^{3} \log \left (d x + c + 1\right ) - 4 \,{\left (3 \, a b c^{4} + b^{2} c^{3} + 3 \, b^{2} c - 3 \, a b - 4 \, b^{2}\right )} e^{3} \log \left (d x + c - 1\right ) + 3 \,{\left (b^{2} d^{4} e^{3} x^{4} + 4 \, b^{2} c d^{3} e^{3} x^{3} + 6 \, b^{2} c^{2} d^{2} e^{3} x^{2} + 4 \, b^{2} c^{3} d e^{3} x +{\left (b^{2} c^{4} - b^{2}\right )} e^{3}\right )} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 4 \,{\left (3 \, a b d^{4} e^{3} x^{4} +{\left (12 \, a b c + b^{2}\right )} d^{3} e^{3} x^{3} + 3 \,{\left (6 \, a b c^{2} + b^{2} c\right )} d^{2} e^{3} x^{2} + 3 \,{\left (4 \, a b c^{3} + b^{2} c^{2} + b^{2}\right )} d e^{3} x\right )} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )}{48 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.5108, size = 944, normalized size = 5.94 \begin{align*} \frac{3 \, b^{2} d^{4} x^{4} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 12 \, a b d^{4} x^{4} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 12 \, b^{2} c d^{3} x^{3} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 12 \, a^{2} d^{4} x^{4} e^{3} + 48 \, a b c d^{3} x^{3} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 18 \, b^{2} c^{2} d^{2} x^{2} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 48 \, a^{2} c d^{3} x^{3} e^{3} + 72 \, a b c^{2} d^{2} x^{2} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 4 \, b^{2} d^{3} x^{3} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 12 \, b^{2} c^{3} d x e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 72 \, a^{2} c^{2} d^{2} x^{2} e^{3} + 8 \, a b d^{3} x^{3} e^{3} + 48 \, a b c^{3} d x e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 12 \, b^{2} c d^{2} x^{2} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 3 \, b^{2} c^{4} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 48 \, a^{2} c^{3} d x e^{3} + 24 \, a b c d^{2} x^{2} e^{3} + 12 \, a b c^{4} e^{3} \log \left (d x + c + 1\right ) - 12 \, a b c^{4} e^{3} \log \left (d x + c - 1\right ) + 12 \, b^{2} c^{2} d x e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 24 \, a b c^{2} d x e^{3} + 4 \, b^{2} d^{2} x^{2} e^{3} + 4 \, b^{2} c^{3} e^{3} \log \left (d x + c + 1\right ) - 4 \, b^{2} c^{3} e^{3} \log \left (d x + c - 1\right ) + 8 \, b^{2} c d x e^{3} + 12 \, b^{2} d x e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right ) + 24 \, a b d x e^{3} + 12 \, b^{2} c e^{3} \log \left (d x + c + 1\right ) - 12 \, b^{2} c e^{3} \log \left (d x + c - 1\right ) - 3 \, b^{2} e^{3} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} - 12 \, a b e^{3} \log \left (d x + c + 1\right ) + 16 \, b^{2} e^{3} \log \left (d x + c + 1\right ) + 12 \, a b e^{3} \log \left (d x + c - 1\right ) + 16 \, b^{2} e^{3} \log \left (d x + c - 1\right )}{48 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]